package com.envocabulary.Ultis;

import android.content.Context;
import android.content.SharedPreferences;


public class Reference {
	public static int TYPE_WORK = 1;
	public static int TYPE_TIME = 1;
	public static final String PREFS_NAME = "RememberPrefsFile";
	public static final String PREFS_TIME = "PrefTime";
	public static final String PREFS_WORK = "PrefWork";
	
	
	public static void saveData(Context context) {
		SharedPreferences settings = context.getSharedPreferences(
				Reference.PREFS_NAME, 0);
		SharedPreferences.Editor editor = settings.edit();
		editor.putInt(Reference.PREFS_TIME, Reference.TYPE_TIME);
		editor.putInt(Reference.PREFS_WORK, Reference.TYPE_WORK);
		editor.commit();
	}

	public static void loadSaveData(Context context) {
		SharedPreferences settings = context.getSharedPreferences(
				Reference.PREFS_NAME, 0);
		Reference.TYPE_WORK = settings.getInt(Reference.PREFS_WORK,1);
		Reference.TYPE_TIME = settings.getInt(Reference.PREFS_TIME,1);
	}

}
